package com.wjw.mapper;

import com.wjw.model.Evaluate_grade_table;
import com.wjw.model.Evaluate_index_table;
import com.wjw.model.Rating_judge_table;
import com.wjw.model.Roadway_type_table;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface RatingJudgeTableMapper {
    List<Rating_judge_table> findAll();
    List<Rating_judge_table> findByPage(@Param("page") int page, @Param("limit") int limit);
    int add(Rating_judge_table rating_judge_table);
    int delete(int id);
    int change(Rating_judge_table rating_judge_table);
    Evaluate_index_table findIndexByName(String name);
    Evaluate_index_table findIndexById(int id);
    Roadway_type_table findRoadwayByName(String name);
    Roadway_type_table findRoadwayById(int id);
    Evaluate_grade_table findGradeByName(String name);
    Evaluate_grade_table findGradeById(int id);
}
